It's not for nil. It's because some specs pass Strings into the method (e.g. shoulda) which fails if you don't do some sort of type/duck checking.