Update Membership.php

Check if status_id is empty before using it to look inside an array
Update Membership.php

Change compare to false to "empty" function
Update Membership.php

formatting improvements
Merge pull request #3025 from sgladstone/patch-3

Update Membership.php