contactFilterExists function to check for '*' as 'Any'