renamed isValid function to isInvalid Refs item: 303