function isFish(pet: Fish | Bird): pet is Fish {
    return (pet).swim !== undefined;
}