simplified isCallback validtor logic