Helper function to deal with the Pyramid of Doom that are Swift Optionals