Could do this check before assigning an array value