remove extension check, already ensured by requirement in composer.json
don't use deprecated methods