This is a bit strange that the function returns either an array of a boolean.