def getFirst(a): # Return the first value if the list has at least one element return a[0] if len(a) > 0 else None