checking if index.html is necessary