This can be written as

    if message.present? && subject.present?