Pull Request 

You could replace the empty($username) to !($username), the same goes for the password
so this could be rewritten as
(!($username || $password))
po :bow: