check for app object's existence before trying to track it