def is_applied(migrations_applied, migration_name):
    """ Check if a migration we want to run is already in the list of applied migrations """
    return [(True) for migration in migrations_applied if migration['name'] ==
        migration_name]
