added check for unity object to avoid errors in non-supported browsers -> avoid bugs in other plugins