define an array in case one does not exist.
define an array in case one does not exist.

In the case of PHP 7 having an empty array causes an error. Therefore, we create an empty array if one does not exist for $view->js[$view::POS_READY]
borodulin/yii2-momentjs