preload array check added 

Otherwise preload ends up iterating the object instead, printing a wall of notices trying to access non existent properties.