[BUGFIX] Fixed hideIfEmpty argument. It was not used in the code.