Check existence of properties before constructing File object