Check if array key exists before comparison

By default, without passing an 'admin' value, this line threw an error. By checking if the array key exists first, now it's fixed.