public function isRole($roleName) { $exists = $this->connection->fetchOne("SELECT COUNT(*) FROM {$this->roles} WHERE name = ?", null, [$roleName]); return (bool) $exists[0]; }