protected function hasRule($attribute, $rules) { return !is_null($this->getRule($attribute, $rules)); }