protected function isSpecificModelAbility(Model $ability)
    {
        return $ability->entity_type !== '*'
            && ! is_null($ability->entity_type)
            && ! is_null($ability->entity_id);
    }
protected function isSpecificModelAbility(Model $ability)
    {
        return $ability->entity_type !== '*'
            && ! is_null($ability->entity_type)
            && ! is_null($ability->entity_id);
    }
protected function isSpecificModelAbility ( Model $ ability ) { return $ ability -> entity_type !== '*' && ! is_null ( $ ability -> entity_type ) && ! is_null ( $ ability -> entity_id ) ; }
Determines whether the given ability is for an action on a specific model.

@param  \Illuminate\Database\Eloquent\model  $ability
@return bool
Determines whether the given ability is for an action on a specific model .