Update index.php

Added a nice way of file checking, with splitted output!