added missing bool operator for ref