[engine] Remove useless check