moving the gif-check to a list comprehension