mixed array_reduce ( array $array , callable $callback [, mixed $initial = NULL ] );
array_reduce function applies iteratively the callback function to the elements of the array, so as to reduce the array to a single value.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.