Yes, this API should return only a boolean value. Hence, changed the return type to primitive boolean type.
I didnt not understand your comment -"if List is accesssible". Could you please explain it? What should I change here?