fix [] cannot be used before PHP 5.4