This is not the same code. ``if (array())`` does not try to read the first element. ``$files[0]`` does.