/**
  * Remove a pet from a user's basket
  * @return boolean  true on successful insertion or false otherwise
  */
 public static function removeFromBasket()
 {
     $post = Core\Input::post();
     if (isset($post['userId']) && isset($post['petId'])) {
         $basket = new Basket($post['userId'], array());
         $res = $basket->removePet($post['petId']);
         if ($res) {
             return json_encode($post);
         }
     }
     return false;
 }