protected function shouldRunEvent($model, $type)
    {
        return property_exists($model, 'sluggableEvents') && in_array($type, $model->sluggableEvents)
            || ! property_exists($model, 'sluggableEvents');
    }
protected function shouldRunEvent($model, $type)
    {
        return property_exists($model, 'sluggableEvents') && in_array($type, $model->sluggableEvents)
            || ! property_exists($model, 'sluggableEvents');
    }
protected function shouldRunEvent ( $ model , $ type ) { return property_exists ( $ model , 'sluggableEvents' ) && in_array ( $ type , $ model -> sluggableEvents ) || ! property_exists ( $ model , 'sluggableEvents' ) ; }
Checks to see if the event should run

@param $model
@param $type
@return bool
Checks to see if the event should run