I have the following simple short-circuit statement that should show either a component or nothing:
{profileTypesLoading && }
This would solve the problem:
{!!profileTypesLoading && }
As it will convert 0 to false. The reason is when it's 0 the next condition doesn't get executed and it behaves like a number in JavaScript so double negation helps here.
0