Invalid argument supplied for foreach()

fix for invalid argument supplied for foreach() in libraries/Profiler.php line number: 242 when count($get) return 1 when $get == true
add extra check when $get == false