.exists() function for JSB. This function allows to check whether an object exists or has been released.