Added recommendations API (bug 1063795)

the else here is redundant