This method does not work when creating a post because id is nil. We could do something like the `url_exists` method but that code is also not really useful since we could use the uniqueness feature of the db