Added existsWhere method