Wrote function IsPassable.