Simplified isValid method