Update Rest.php

Returns true if successful otherwise false.

Allows for if($instance->connect()) and if(!$instance->connect())
Merge pull request #24 from spinegar/master

Update Rest.php