allow multiline empty array for amd detection (#169)