how to check array is empty or not in codeigniter