protected function isNested($name, $relation) { $dots = str_contains($name, '.'); return $dots and starts_with($name, $relation) and $name != $relation; }