Fixed IS_FINAL_FUNCTION implementation