def foo(currently_occupied):
    return all(isinstance(item, list) and len(item) == 2 and all(isinstance
        (subitem, int) for subitem in item) for item in currently_occupied.
        values())
Check if dictionary key is filled with list of 2 numbers