Several improvements

 - Remove summary if it's "empty"

 - Properly check if count is 0

 - Reshow html if it was hidden before