preload array check added

Preload will otherwise happily iterate through an object, printing a wall of notices trying to access non existent fields.