Implemented variable and function defineness checks