Fixed: Passed null value to array_reverse, causing php notice