$bottomcontactnum can determine that is there a contact at the bottom of the component?
Example
$bottomcontactnum 1