PHModel: handle null pH cases, add doc