I propose adding the unless and if statements from ruby. Return false if james = nil This returns false if the variable James is nil . This line does it unless james is nil: Return false unless james = nil This has been really handy when working in ruby, reduces lines and pyramids of doom Sent from my iPhone