Improved Condition for prototype check