Problem in php 7 array is null after creation initialized with values code example
Example: declare empty array in php
$emptyArray = [];
$emptyArray = array();
$emptyArray = (array) null;
$emptyArray = [];
$emptyArray = array();
$emptyArray = (array) null;