API Merge: Merged get functions with and without id

you can avoid $one_row variable and put the row from line 24 here inline `$course_id ? true : false`