Should be `if (!$connect || !$hasUser) {`