API - Basic API calls

doesn't it make sense to change code then to be (using the concept of return more often):

```php
if (!$clause) {
   return;
}

$query = "UPDATE %scourses ".$clause. "WHERE course_id = %d ". $clause;
$array = array(TABLE_PREFIX, $course_id);
```