Only if statements at the beginning of this function.  Is this todo out of date, referring to another function, or about the calculation of the return value.

E.g. you could not calculate south / east if neither north or west were useable.