has('alg')) { $bag->add(Message::medium('The parameter "alg" should be added.')); } } }