php version on developer server doesn't like [] after function call