Hm, looked it up and it indeed doesn't.

This method would be shorter, but maybe you already tried it.

http://stackoverflow.com/a/14719658/204044