Switching ! nil? check to present?

In the case of "", [] the behavior would've failed.