Check if the element is valid
The error code the element. ErrorCode.NONE means that the element is valid
See Implementation
Check if the element is valid