Rename variable name to be understandable
Rename variable and add check condition for case when curl is not available and for when api configuration is not setted