from typing import Optional
from typing import Tuple
from typing import List


def is_point_in_rectangle(point: Optional[Tuple[int, int]],
                          rectangle: List[int]) -> bool:
  """Checks if a point is within a rectangle.

  Args:
    point: point to check. (x, y)
    rectangle: bounding rectangle [left, bottom, right, top].

  Returns:
    True if the point is within the rectangle.
  """
  if point is None:
    return False

  return point[0] >= rectangle[0] and point[1] >= rectangle[1] and point[
      0] < rectangle[2] and point[1] < rectangle[3]