Fix code example

$collection is undefined and throws an exception if called as function.
Merge pull request #13 from failpunk/patch-1

Fix code example