file recorder nil error check