Remove filePath extension check

Why exactly do we need the filePath extension check?