when you're doing boolean if statements, you don't need to compare them to true or false. Just do:

    if (displayCard(currentRow, currentColumn, 'null').rotated) {
      // It's rotated!
    }

or 

    if (!displayCard(currentRow, currentColumn, 'null').rotated) {
      // It's not rotated!
    }