check objects exist before using them