Use a simpler and faster 'any()' test instead of creating two lists and checking if resulting list is empty.