Issue #2057703 by New Zeal, sgabe: Warning: is_file() expects a valid path.