Php script should favor function/method with the most parameters