Added API returnable method isValid