isValid wasn't really necessary I guess...
Update code examples.