prevent change detection for undefined boolean and with objects & avoid exit loop at fist unchanged value