checking for file and returning result + any errors