You should always know what corner it is just from the position you are in and the controller input.
Obvioulsy you have to check too, but you can just check the direction the user wants. Its less work.
If you have to automate it, then just check both possible directions.
If you want to be picky, you can use sphiel trace with the dimensions of the player capsule to see if the player can actually pass.
That’s useful for not having to worry about checking procedurally generated levels…