Ah yes, a typó on the 's' 🙂
I set $errorMessage to null from the start, then other functions add info to it like this:
$errorMessage[] = "Hello World"
and then the function i showed above needs to print the messages, and it does... but i still get a warning... not sure.. will look into it some more..
thx.