removed length property of potentially undefined value