def head_option(self):
        if not self.sequence:
            return None
        return self.head()
Returns the first element of the sequence or None, if the sequence is empty.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.head_option