Adding sanity checks before attempting to encode PFFile ivars.