fixed error on older versions on php with array initialization
made map function utilize array() instead of []