diff --git a/src/Eloquent/FormAccessible.php b/src/Eloquent/FormAccessible.php index 0afd17e..ff7866e 100644 --- a/src/Eloquent/FormAccessible.php +++ b/src/Eloquent/FormAccessible.php @@ -69,11 +69,7 @@ trait FormAccessible */ public function isNestedModel($key) { - if (in_array($key, array_keys($this->getRelations()))) { - return true; - } - - return false; + return in_array($key, array_keys($this->getRelations())); } /**