remove parent check and add check for nested keys inside or queries