now compiles with Xcode 6 beta 5.
Using the ?? operator simplifies code a lot.