Using the correct php function now for checking if an array key exists