Check here to make sure the instance is created first before continuing