Hello alqueen,
you could try to insert your button via the new model-driven app designer in your command bar. Then set the visibility Property of the button via Power FX formula.
Should look something like this imo:
If(IsBlank(Self.Selected.Item.'Contact.'E-Mail'),false,true)
where 'Contact' should be the lookup to your related Entity and 'E-Mail' the field in this Enity you want to check.