fix for issue #1144

``(strpos($name, '[]') == (strlen($name) - 2))`` === ``(substr($name, -2) == '[]')`` :wink: