Check if loader is present when calling showLoader