It's easier to prevent this than to worry about the special case of the current (session) user no longer existing... although this is still theoretically possible if an admin deletes a logged-in user, since it's admin-only, probably best to put a check in.
It's easier to prevent this than to worry about the special case of the current (session) user no longer existing... although this is still theoretically possible if an admin deletes a logged-in user, since it's admin-only, probably best to put a check in.