Changed the refactor to make sense. 
Divided into two parts, one to check if it is a valid symbol, and another to creat the proxy custom node is symbol was invalid.
Hope it is proper now.