Updated to check for array