Adding callback function to array_filter