add #18 not work with arrays in php 5.4 []
added support for php 5.4