fixed: php errors when there are no stats available