replaced all instances of array_push() with more performant $array[] = $var as suggested by Kunal and referenced at http://php.net/manual/en/function.array-push.php