allow functions in array index when calling empty