Changing isset() to strlen