ensuring data exists before loading using it