Check null on removeFile