select case when count(*) = 0 then 0 else 1 end from pl_addresses where address_id = :address_id