How to disable "Get Mass" for non-phys objects?

Ignore the first question, I managed to make a function out of it which did the job, no error. However, my BONUS question has not been sorted so i’d still appreciate a response on that