working on knight validation, checking arrays in php is annoying