Moved collections to lib
Check that a post has a URL