Added check for empty map