prevent error through non-object