There should be an Else block in which Nil is returned.