What is your question?
How to hide a portal if there are no related records?
I assume you are talking about this issue.
This issue was resolved in 15
The work around for 14 was to make the portal invisible when there are no records.
IsEmpty ( EST_ArtRecords::Estimate No )
"EST_ArtRecords::Estimate No" is the field used in the relationship in the portal records.