<?php

namespace UserControlSkeleton;

class Requests
{
	protected $data;

	public function __construct()
	{
		foreach ($_POST as $key => $value) {
			$this->data[$key] = $value;
		}
	}

	public function get($field)
	{
		return $this->data[$field];
	}
}

<?php

namespace UserControlSkeleton;

class Requests
{
	protected $data;

	public function __construct()
	{
		foreach ($_POST as $key => $value) {
			$this->data[$key] = $value;
		}
	}

	public function get($field)
	{
		if (!array_key_exists($field, $this->data)) {
			return;
		}

		return $this->data[$field];
	}
}

Add logic to get request to return error if key not found
Add logic to get request to return error if key not found
