You probably shouldn't cast to array if it can also be false.