Add isMounted method.