Update Api.php

Use array_merge() for compatibility with PHP before 5.3.0