Made sure file has content before adding