Added check if source contains array