public function canByName(string $permissionName): bool
    {
        if (\in_array($permissionName, \array_column($this->permission, 'name'), true)) {
            return true;
        }

        return false;
    }
public function canByName(string $permissionName): bool
    {
        if (\in_array($permissionName, \array_column($this->permission, 'name'), true)) {
            return true;
        }

        return false;
    }
public function canByName ( string $ permissionName ) : bool { if ( \ in_array ( $ permissionName , \ array_column ( $ this -> permission , 'name' ) , true ) ) { return true ; } return false ; }
Check if a Permission is owned, use permission name.

@param string $permissionName

@return bool
Check if a Permission is owned use permission name .