Brain-Flak, 96 bytes
{<<>>(({})<<>>[(([{}<<>>]))]){((<<[[]]>>))}{}{}{}{}<<>>}<<>>{{{}{}{}{}{}}((<<>>){{}{}}){{{}}}}{}
Outputs nothing if the input is perfectly paired, and 0
otherwise.
Non-perfectly paired (original) version:
{<>(({})<>[({}<>)]){((<()>))}{}{}{}<>}<>{((<>))}{}