checks if instantiated