def _has_correct_orientation(wall, orientation_degrees):
    """Check that the wall has an orientation which requires WWR to be set.

    :param wall: An EpBunch representing a wall.
    :param orientation_degrees: Orientation in degrees.
    :return: True if the wall is within 45 degrees of the orientation passed, or no orientation passed.
             False if the wall is not within 45 of the orientation passed.
    """
    if orientation_degrees is None:
        return True
    if abs(wall.azimuth - orientation_degrees) < 45:
        return True
    return False
