I agree with you using ElementErrorCode. I'm just saying the function name should be renamed because it doesn't return bool anymore.