Explicitly comparing optionals with nil due to language changes in Xcode 6 beta 5