Welcome to the Treehouse Community
Looking to learn something new?
Return nil vs return false
Why can't we just have this return false? That was it will either be true or false and an optional won't be needed.
It does appear pointless in this context, I'd agree.
However, the initial test is testing for the type, not the value. So it's looking for a boolean; it happens to be
Have a look at this post to see if that sheds a little light on the possibilities of the optional.