Php Codeigniter How To Return Null When The Array Is Empty Stack

Php Codeigniter How To Return Null When The Array Is Empty Stack