Add extension checking based on config.php array