Just `return curExtension`. No need to `break` then `return`.