Re-factor for ProcessRestrictions
Re-factor of code

Correctly check string with IsNullOrEmpty