!stock_location.admin_name.blank? would read better as stock_location.admin_name.present?