Remove the need of loop to check whether exist a module
Remove the need of loop to check whether exist a module

Signed-off-by: Fong-Wan Chau <e274eeff768c6396088ec6eb091f4bf4d47ab1e0@fongwanchau.com>

OpenHDX/web-api