Thanks for your query,
You have not mentioned date of last period. However , if scan is showing this result you need to undergo repeat scan after 1 week to confirm absence of heartbeat because at 5 weeks localising the heartbeat may be technically difficult. Then you may have to consider abortion
if the results are same.Best of luck..
Hope it helps you..