Changed Count() > 0 to !IsEmpty().

Signed-off-by: Jan Nemecek <Nemecek.Jan@seznam.cz>