separated checks for personal and course albums, then array_merge them only if they exist