Implement method that checks whether the given ID exists in the database or not

Because the previous name of this method is ambiguous, the name was changed to
a clearer, more understandable name. Also, the visibility of this method was
changed to public, since it is possible that this method may be used other
than for the purpose of a helper method.