Replace nil by false here and in the next line, and we can get rid of the false return value before catch.