Fix PHP error - remove call-time pass-by-reference

Deprecated in 5.3.0, removed in 5.4.0

PHP Fatal error:  Call-time pass-by-reference has been removed
Suppress warnings from is_file()