Yandex: Fixed incorrect test of length of bool object. Removed redundant setting of variable.
Yandex: Fixed incorrect test of length of bool object. Removed redundant setting of variable.

KshitijKarthick/tvecs,KshitijKarthick/tvecs,KshitijKarthick/tvecs