Function : arrVoid

This checks if an array is empty. This is done by first removing all keys having empty values in an array. Once the keys are removed, then the array is then checked to see if it still contains any keys. If the resulting array contains keys, then true value is returned.

Syntax
  arrVoid($array)
  
  $array: array to be checked
   
                  
Sample 1
  vdump(arrVoid([])); //true
                  
Sample 2
  vdump(arrVoid([[]])); //true
                  
Sample 3
  vdump(arrVoid(['user'=> 'foo'])); //false
                  
Sample 4
  vdump(arrVoid(['user'=> ''])); //true
                  
Sample 5
  vdump(arrVoid(['user'=> []])); //false
                  
Sample 6
  vdump(arrVoid(['user'=> false])); //false
                  
Sample 7
  vdump(arrVoid(['user'=> 0])); //false
                  
Sample 8
  vdump(arrVoid(['user'=> 'foo', 'name'=>'bar'])); //false