params[:id].present?
nil.present?

( the original post was a hack adding String.filled? / NilClass.filled? )