Update Membership.php

Check if status_id is empty before using it to look inside an array