List comprehension abuse called. This is waaaay too much logic for a one-liner.