use isset() instead of is_array() to check if an array's element is existing. (remove PHP Notice)