Inline valid? method