Some methods don't produce errors and are able to handle issues themselves. In the following code count() returns zero when nothing exists.