added parameter check and phpdoc for isCallback widget