Returns empty array probably because it's in a hook.