optional chaining code added to build it Xcode 6.1