def check_engine(vessel):
    """
    Check to see if there are active engines

    :param vessel: Vessel object from kRPC
    :return: whether any engines are active and have thrust available
    """
    for engine in vessel.parts.engines:
        if engine.active and engine.available_thrust > 0:
            return True
    return False