Add utility isTypeElementDefined method

Signed-off-by: George Gastaldi <gegastaldi@gmail.com>