Add check empty for object loader