check if php_package is defined

only require $php_package if its needed