Add ```isValid()``` method to the _API_ section