Check for nil instead of rescue for flow control