Did you forget about the 'goto fail'  bug in OSX? And iirc, the code standard says even oneline if-statements should use  braces.