If you are not familiar with Ruby, you may be asking why not just use user.name || 'N.A.' directly. The present? (and related blank?) extension will handle empty strings which in Ruby are evaluated as truthy.