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.
PHP closing tag is removed
removing extraneous parentheses
Merge branch 'ktamas77-master'