chore(refresh): coding style + change message of the error

Change codding style
Move checking for loader existence upwards
Change the message of the error