add exception for nil search terms