fixed if test on empty dict now returns False