def checkForPartInCreep(creep, bodyPart):
    """
    Returns true of the bodyPart is contained in the Creep's body
    :param creep: The creep to check
    :param bodyPart: The part to check for (e.g. RANGED_ATTACK)
    """
    if not creep or not creep.body:
        return False
    for i in range(0, creep.body.length):
        if creep.body[i].type == bodyPart:
            return True
    return False