In python is more common: if hints is not None: