use _.isEmpty for more robust checking