altered return_insights_hash function to handle cases where sample_size was zero, and insight hashes are making their way to the client in the ajax response.