Filter the $return array after it's been processed