Improved logic for detecting empty FILES superglobal