You need to add a nil check for the `endpoint_uri` to the `valid?` method below and update the documentation too.