Fix isNew method by using the right method to get state