Added safety net for input values vs input nodes count
Saving one function call