def detect_carbon(mol, *args, **kwargs):
    """Detects all occurences of Carbon to determine if a compound is organic.

    Checks for the presence of Carbon in the molecule provided. 

    Parameters
    ----------
    mol: rdkit.Chem.Mol
        The molecule which has to be searched for Carbon.

    Returns
    -------
    boolean: bool
        Returns if the stucture contains Carbon (True),
        or not (False).
    """
    for a in mol.GetAtoms():
        if a.GetAtomicNum() == 6:
            return True
    return False