Update Rest.php

Returns true if successful otherwise false.

Allows for if($instance->connect()) and if(!$instance->connect())