``return isset($parts['host'])`` is enough. No need to use a ternary operator to turn a boolean into itself