Replaced square brackets denoting arrays with array() to improve php 5.3 compatibility