Controllers, views..

fn.empty? или fn.blank?