fixing boolean issue where empty() returned false on false variables