findEntity($sql, [$id]); } public function findAll() { $sql = 'SELECT * FROM *PREFIX*quicknotes_colors'; return $this->findEntities($sql, []); } public function findByColor($color) { $sql = 'SELECT * FROM *PREFIX*quicknotes_colors WHERE color = ?'; return $this->findEntity($sql, [$color]); } public function colorExists($color) { $sql = 'SELECT * FROM *PREFIX*quicknotes_colors WHERE color = ?'; try { $this->findEntity($sql, [$color]); } catch (DoesNotExistException $e) { return false; } return true; } }