Thanks, I didn't know that swift requires the optional to be guarded against.