UPDATE: This question is no longer a problem after Xcode beta5
Seems the beta3 release refactored how \"nil\" is working under the hood but didn\'t com
The under-the-covers method that Swift uses to turn non-Bool values in booleans for use in if statements is the getLogicValue() method of the LogicValue protocol (which Optional implements):
Bool
if
getLogicValue()
LogicValue
Optional
func hasLogin() -> Bool { return self.credential.getLogicValue() }