checks the passed argument/file exists