changed the way we check for collections
Merge pull request #1 from ivanoats/master

changed the way we check for collections