Search: defensive logic