should be:

if 'projs' in info and len(info['projs']) > 0:

as projs should always be in info and if info['projs'] == [] then proj will the indentity and make multiplications for nothing.