fixing issue with AST errors related to returning an Array instead of a nil when no sources are found