prevent nil object