def _get_element_in_pif_composition_(pif, elemental_symbol):
    """
    If the element in question if in the composition array in the pif, it returns that Composition object and the position in the composition array otherwise it returns False

    :param pif: ChemicalSystem Pif in question
    :param elemental_symbol: string of the atomic symbol of the element in question
    :return: either False if not found in the composition or the Compositional object along with its index in the composition array in the pif
    """
    if pif.composition is None:
        pif.composition = []
    for i, c in enumerate(pif.composition):
        if c.element == elemental_symbol or c.element.lower(
        ) == elements_data[elemental_symbol]["name"].lower():
            return [c, i]
        i += 1
    return False
def _get_element_in_pif_composition_ ( pif , elemental_symbol ) : if pif . composition is None : pif . composition = [ ] for i , c in enumerate ( pif . composition ) : if c . element == elemental_symbol or c . element . lower ( ) == elements_data [ elemental_symbol ] [ "name" ] . lower ( ) : return [ c , i ] i += 1 return False
If the element in question if in the composition array in the pif, it returns that Composition object and the position in the composition array otherwise it returns False

    :param pif: ChemicalSystem Pif in question
    :param elemental_symbol: string of the atomic symbol of the element in question
    :return: either False if not found in the composition or the Compositional object along with its index in the composition array in the pif