Filter out null values.
Travis, please test this on PHP 5.5...
Try something.
Ok, lets have a look.