def _get_transform_y(element):
    """
    Extracts the translateY for an element from its transform or assumes it to be 0
    :return: an int representing the translateY value from the
    transform or 0 if there is no transform present
    """
    return element.get('transform').get('translateY') or 0