Fixed errors

In Swift, you must check if not nil (I know, right? You can't implicitly check with 0 and 1) and I think you know you forgot the < in ..< :P