check get API not  NULL for foreach

home_controller.php