check if y is not None