check if file selected