Refactor getAllAlignments()

Add missing empty array declaration