Return nil in method if there is some kind of error