Proper check to see of we are in Admin Panel

Added proper check to see of we are in Admin Panel
Removed duplicate "sizeof($enabled_languages)" check