When exception is raised, function returns nil. That's why I do not want it to return nil in any other cases.